<div class="wrapper-md" ng-controller="todoPage" style="padding:2px;">
    <div class="wrapper-md">
        <div class="panel panel-default">
            <div class="panel-heading">
                业务入口
            </div>
            <div class="panel-body">
                <ul style="list-style:none">
                    <li ng-if="app.power.powerPurchasingOrder" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('purchase')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/cgdd.png">
                            </div>
                            <div style="text-align: center;">
                                采购订单
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerPurchasingWarehousing" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('purchasein')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/cgrk.png">
                            </div>
                            <div style="text-align: center;">
                                采购入库
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerPurchasingReturn" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('purchasereturn')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/cgth.png">
                            </div>
                            <div style="text-align: center;">
                                采购退货
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerSaleOrder" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('salesorder')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/xsdd.png">
                            </div>
                            <div style="text-align: center;">
                                销售订单
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerSaleWarehousing" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('salesout')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/xsck.png">
                            </div>
                            <div style="text-align: center;">
                                销售出库
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerSaleReturn" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('salesreturn')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/xsth.png">
                            </div>
                            <div style="text-align: center;">
                                销售退货
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerOthergoodOut" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('othergoodout')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/qtck.png">
                            </div>
                            <div style="text-align: center;">
                                其他出库
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerOthergoodIn" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('othergoodin')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/qtrk.png">
                            </div>
                            <div style="text-align: center;">
                                其他入库
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerProductionPlan" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('productionplan')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/scjh.png">
                            </div>
                            <div style="text-align: center;">
                                生产计划
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerProcessProcess" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('processprocess')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/gyjg.png">
                            </div>
                            <div style="text-align: center;">
                                工艺加工
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerTransfer" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('transfer')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/hpdb.png">
                            </div>
                            <div style="text-align: center;">
                                货品调拨
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerInventory" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('inventory')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/hppd.png">
                            </div>
                            <div style="text-align: center;">
                                货品盘点
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerCommodityAssembly" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('commodityassembly')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/spzz.png">
                            </div>
                            <div style="text-align: center;">
                                商品组装
                            </div>
                        </a>
                    </li>
                    <li ng-if="app.power.powerMerchandiseDisassembly" style="float: left;margin: 15px;">
                        <a ng-click="openAddUrl('merchandisedisassembly')">
                            <div>
                                <img style="width: 60px;height: 60px" src="./img/icos/spcx.png">
                            </div>
                            <div style="text-align: center;">
                                商品拆卸
                            </div>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <tabset class="tab-container" ng-init="steps={percent:20, step1:true, step2:false, step3:false}">
            <tab id="todo" heading="我的待办" active="steps.step1" select="steps.percent=10" ng-click="getInfo(0)">
                <table id="table" class="table m-b-none" ui-jq="footable" data-filter="#filter1" data-page-size="5">
                    <thead>
                    <tr>
                        <th>{{columns[0].title}}</th>
                        <th>{{columns[1].title}}</th>
                        <th>{{columns[2].title}}</th>
                        <th>{{columns[3].title}}</th>
                        <th>{{columns[7].title}}</th>
                        <th>{{columns[4].title}}</th>
                        <th>{{columns[5].title}}</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="tb in saveDate">
                        <td><a ng-click="gotoDoc(tb)">{{tb.personalWorkTitle}}</a></td>
                        <td><a href>{{tb.personalWorkDb}}</a></td>
                        <td>{{tb.updateTime}}</td>
                        <td>{{tb.personalWorkUpUser}}</td>
                        <td>{{tb.personalWorkCreateUserName}}</td>
                        <td>{{tb.createTime}}</td>
                        <td><span class="{{tb.status1}}">{{tb.personalWorkFlowName}}</span></td>
                    </tr>
                    </tbody>
                    <tbody ng-if="isshow" style="border-top: 0px">
                        <tr>
                            <td colspan="7" style="text-align:center;vertical-align:middle;height:150px">未找到数据</td>
                        </tr>
                    </tbody>
                    <tfoot class="hide-if-no-paging">
                    <tr>
                        <td colspan="7" class="text-center">
                            <ul class="pagination"></ul>
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </tab>
            <tab id="hasdo" heading="我的已办"  active="steps.step2" select="steps.percent=30" ng-click="getInfo(1)">
                <table class="table m-b-none" ui-jq="footable" data-filter="#filter2" data-page-size="5">
                    <thead>
                    <tr>
                        <th>{{columns[0].title}}</th>
                        <th>{{columns[1].title}}</th>
                        <th>{{columns[2].title}}</th>
                        <th>{{columns[3].title}}</th>
                        <th>{{columns[6].title}}</th>
                        <th>{{columns[7].title}}</th>
                        <th>{{columns[4].title}}</th>
                        <th>{{columns[5].title}}</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="tb in saveDate1">
                        <td><a ng-click="gotoDoc(tb)">{{tb.personalWorkTitle}}</a></td>
                        <td><a href>{{tb.personalWorkDb}}</a></td>
                        <td>{{tb.updateTime}}</td>
                        <td>{{tb.personalWorkUpUser}}</td>
                        <td>{{tb.personalWorkUser}}</td>
                        <td>{{tb.personalWorkCreateUserName}}</td>
                        <td>{{tb.createTime}}</td>
                        <td><span class="{{tb.status1}}">{{tb.personalWorkFlowName}}</span></td>
                    </tr>
                    </tbody>
                    <tbody ng-if="isshow" style="border-top: 0px">
                    <tr>
                        <td colspan="8" style="text-align:center;vertical-align:middle;height:150px">未找到数据</td> </tr>
                    </tbody>
                    <tfoot class="hide-if-no-paging">
                    <tr>
                        <td colspan="8" class="text-center">
                            <ul class="pagination"></ul>
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </tab>
            <tab id="mystart" heading="我的发起" active="steps.step3" select="steps.percent=60" ng-click="getInfo(2)">
                <table class="table m-b-none" ui-jq="footable" data-filter="#filter3" data-page-size="5">
                    <thead>
                    <tr>
                        <th>{{columns[0].title}}</th>
                        <th>{{columns[1].title}}</th>
                        <th>{{columns[2].title}}</th>
                        <th>{{columns[3].title}}</th>
                        <th>{{columns[6].title}}</th>
                        <th>{{columns[4].title}}</th>
                        <th>{{columns[5].title}}</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="tb in saveDate2">
                        <td><a ng-click="gotoDoc(tb)">{{tb.personalWorkTitle}}</a></td>
                        <td><a href>{{tb.personalWorkDb}}</a></td>
                        <td>{{tb.updateTime}}</td>
                        <td>{{tb.personalWorkUpUser}}</td>
                        <td>{{tb.personalWorkUser}}</td>
                        <td>{{tb.createTime}}</td>
                        <td><span class="{{tb.status1}}">{{tb.personalWorkFlowName}}</span></td>
                    </tr>
                    </tbody>
                    <tbody ng-if="isshow" style="border-top: 0px">
                    <tr>
                        <td colspan="7" style="text-align:center;vertical-align:middle;height:150px">未找到数据</td> </tr>
                    </tbody>
                    <tfoot class="hide-if-no-paging">
                    <tr>
                        <td colspan="7" class="text-center">
                            <ul class="pagination"></ul>
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </tab>

            <tab id="nosubmit" heading="我的草稿" active="steps.step4" select="steps.percent=60" ng-click="getInfo(3)">
                <table class="table m-b-none" ui-jq="footable" data-filter="#filter4" data-page-size="5">
                    <thead>
                    <tr>
                        <th>{{columns[0].title}}</th>
                        <th>{{columns[1].title}}</th>
                        <th>{{columns[2].title}}</th>
                        <!--<th>{{columns[3].title}}</th>-->
                        <th>{{columns[6].title}}</th>
                        <th>{{columns[4].title}}</th>
                        <th>{{columns[5].title}}</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="tb in saveDate3">
                        <td><a ng-click="gotoDoc(tb)">{{tb.personalWorkTitle}}</a></td>
                        <td><a href>{{tb.personalWorkDb}}</a></td>
                        <td>{{tb.updateTime}}</td>
                        <!--<td>{{tb.personalWorkUpUser}}</td>-->
                        <td>{{tb.personalWorkUser}}</td>
                        <td>{{tb.createTime}}</td>
                        <td><span class="{{tb.status1}}">{{tb.personalWorkFlowName}}</span></td>
                    </tr>
                    </tbody>
                    <tbody ng-if="isshow" style="border-top: 0px">
                    <tr>
                        <td colspan="6" style="text-align:center;vertical-align:middle;height:150px">未找到数据</td> </tr>
                    </tbody>
                    <tfoot class="hide-if-no-paging">
                    <tr>
                        <td colspan="6" class="text-center">
                            <ul class="pagination"></ul>
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </tab>
            <!--搜索放这里-->
            <div style="float: right;padding:0px;" class="panel-body b-b b-light">
                搜索: <input id="searchInput" style="margin-right:-2px;" type="text" class="form-control input-sm w-sm inline m-r"/>
                <button style="background-color: white;border-radius:2px;margin-bottom:3px;" ng-click="searchTodo()" class="btn btn-sm bg-light rounded"><i class="fa fa-search"></i></button>
            </div>
        </tabset>

    </div>
</div>
<style>
    .badge.up {
        right: -18px;
        top: -18px;
    }
</style>
